﻿@model MvcAtletIS.Models.Links

@{
    ViewBag.Title = "Odkazy";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Zobraziť odkaz</h2>

<fieldset>
    <legend>Detaily</legend>

    <div class="display-label">
        @Html.LabelFor(model => model.Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.Order)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Order)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.Adress)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Adress)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.Active)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Active)
    </div>

    <div class="display-label">
        @Html.LabelFor(model => model.LogoPath)
    </div>
    <div class="display-field">
        <img src="@Url.Content("~/Content/logos/" + @Model.LogoPath)" alt="@Model.Name" align="left" class="article-image" />
    </div>

</fieldset>

<p>
    @Html.ActionLink("Editovať", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Naspäť na prehľad odkazov", "Index", new { CategoryId = Model.CategoryId})
</p>
